package main

import "fmt"
import (
	"bufio"
	"os"
	"workers"

)

func main() {
	//workers.Exec()

	reader := bufio.NewReader(os.Stdin)
	for  {
		fmt.Println("#type exit to stop program")
		data, _, _ := reader.ReadLine()
		command := string(data)
			if command == "q" {
			break
		}else{
			response(command)
		}
		//fmt.Println("command", command)
	}

//	fmt.Scanln()
}

func response(command string) {
	switch command{
	case "ping":
		workers.Exec()

	}
	fmt.Println(command)
}


